package br.com.commercy.dominio.entidade;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import br.com.commercy.infra.arquitetura.entidade.Entidade;

@SuppressWarnings("serial")
@Entity
@Table(name="TBL_COBRANCA")
@SequenceGenerator(name="SEQ_COBRANCA", sequenceName="SEQ_COBRANCA")
public class DiasCobranca implements Entidade{
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO,generator="SEQ_COBRANCA")
	private Long codigo;
	
	@Column(name="VALOR",nullable=false)
	private Integer valor;

	@Override
	public Serializable getIdentificador() {
		// TODO Auto-generated method stub
		return codigo;
	}

	@Override
	public String getDescricao() {
		// TODO Auto-generated method stub
		return null;
	}

	public Long getCodigo() {
		return codigo;
	}

	public void setCodigo(Long codigo) {
		this.codigo = codigo;
	}

	public Integer getValor() {
		return valor;
	}

	public void setValor(Integer valor) {
		this.valor = valor;
	}

	
}
